package com.wlc.base;

/**
 * @author 王立朝 wanglichao@champion-credit.com
 * @description 变量
 * @date 2021-06-11 17:22
 */
public class Demo05 {
    /**
     * 类变量
     */
    static int a =1;
    /**
     * 实例变量，属于对象
     */
    String str = "abc";
    public void method(){
        // 局部变量
        int a = 2;
        System.out.println(a);
    }

    public static void main(String[] args) {
        new Demo05().method();
        //int a=1 ,b=2,c=3;
        int a = 1;
        int b = 2;
        int c = 3;
        String name = "wanglichao";
        char x = 's';
        double d = 2.0;


    }

}
